package com.seed.core.field;

public class FieldAuth {
    private FieldAuthorize value;
    private String label;
    private String comment;

    public FieldAuth(String label, FieldAuthorize value) {
        this.label = label;
        this.value = value;
    }

    public FieldAuth(String label, String comment, FieldAuthorize value) {
        this(label, value);
        this.comment = comment;
    }

    public FieldAuthorize getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }

    public String getComment() {
        return comment;
    }
}

@FunctionalInterface
interface FieldAuthorize {
    void auth(Object entity, String finalColumn);
}
